#!/bin/bash
sum=0
for i in {1..100}
do
    n=$[$i%3]
    if [ $n -eq 0 ]
    then
       #echo $i
       sum=$[$i+$sum]
       #echo "sum: $sum"
    fi
done
echo "sum: $sum"
